package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.RbacRole;
import com.woniuxy.service.RbacManagerService;
import com.woniuxy.service.RbacRoleService;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;
import java.util.Map;


/**
 * 预编译代码演示
 */
public class MyTest {
    public static void main(String[] args)  {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        RbacRoleService rbacRoleService = applicationContext.getBean("rbacRoleService",RbacRoleService.class);
        RbacRole rbacRole = new RbacRole();
        rbacRole.setRname("1");
        rbacRole.setDescribe("xx");
        List<RbacRole> search = rbacRoleService.search(rbacRole);
        for (RbacRole role : search) {
            System.out.println(role);
        }
    }
}
